﻿<%@ Page Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="MaintainRecord.aspx.cs" Inherits="EmailMarketingCampaign.MaintainRecord" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
         <div class="content">
<div id="post-69" class="post">
 <span class="absolute box_2_t_l"></span> 
 <span class="absolute box_2_t_r"></span> 
 <span class="absolute box_2_b_l"></span>
  <span class="absolute box_2_b_r"></span>


<p class="a">Maintain Member Group</p>
 <div class="details">
    
     <asp:SqlDataSource ID="group1" runat="server" ConnectionString="<%$ ConnectionStrings:EmailMarketing_DBConnectionString%>" ProviderName="<%$ ConnectionStrings:EmailMarketing_DBConnectionString.ProviderName %>"

    SelectCommand="select * from group1 where COMUniquelID =?COMUniquelID"> 
    
  <SelectParameters> <asp:SessionParameter Name="COMUniquelID"  SessionField="COMUniquelID"  Type="String" />   </SelectParameters>
</asp:SqlDataSource>
    
      <asp:SqlDataSource ID="group2" runat="server" ConnectionString="<%$ ConnectionStrings:EmailMarketing_DBConnectionString%>" ProviderName="<%$ ConnectionStrings:EmailMarketing_DBConnectionString.ProviderName %>"

    SelectCommand="select * from group2  where COMUniquelID =?COMUniquelID "> 
        <SelectParameters> <asp:SessionParameter Name="COMUniquelID"  SessionField="COMUniquelID"  Type="String" />   </SelectParameters>

    </asp:SqlDataSource>
    
      <asp:SqlDataSource ID="group3" runat="server" ConnectionString="<%$ ConnectionStrings:EmailMarketing_DBConnectionString%>" ProviderName="<%$ ConnectionStrings:EmailMarketing_DBConnectionString.ProviderName %>"

    SelectCommand="select * from group3 where COMUniquelID =?COMUniquelID "> 
        <SelectParameters> <asp:SessionParameter Name="COMUniquelID"  SessionField="COMUniquelID"  Type="String" />   </SelectParameters>

    </asp:SqlDataSource>
    
        <br />
        <table class="style1">
            <tr>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Group1"></asp:Label>
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtGroup1" runat="server"></asp:TextBox>
                </td>
                <td class="style4">
                    <asp:Button ID="btnGroup1" runat="server" Text="ADD" 
                        onclick="btnGroup1_Click" Height="27px" Width="50px" CssClass="button"   />
                    <asp:Button ID="btnEdit1" runat="server" Enabled="False" Height="27px" 
                        Text="Edit" Width="50px"  CssClass="button"  />
                    <asp:Button ID="Button1" runat="server" Enabled="False" Height="27px" 
                        Text="Delete" Width="50px"  CssClass="button"  />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label2" runat="server" Text="Group2"></asp:Label>
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtGroup2" runat="server" Height="22px"></asp:TextBox>
                </td>
                <td class="style4">
                    <asp:Button ID="btnGroup2" runat="server" Text="ADD" 
                        onclick="btnGroup2_Click" Height="27px" Width="50px"  CssClass="button"  />
                    <asp:Button ID="btnEdit2" runat="server" Enabled="False" Height="27px" 
                        Text="Edit" Width="50px"  CssClass="button"  />
                    <asp:Button ID="Button2" runat="server" Enabled="False" Height="27px" 
                        Text="Delete" Width="50px"  CssClass="button"  />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label3" runat="server" Text="Group3"></asp:Label>
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtGroup3" runat="server"></asp:TextBox>
                </td>
                <td class="style4">
                    <asp:Button ID="btnGroup3" runat="server" Text="ADD" Height="27px"  CssClass="button" Width="50px" 
                        onclick="btnGroup3_Click"  />
                    <asp:Button ID="btnEdit3" runat="server" Enabled="False" Text="Edit"  CssClass="button" Height="27px"
                        Width="50px" />
                    <asp:Button ID="Button3" runat="server" Enabled="False" Height="27px"  CssClass="button" 
                        Text="Delete" Width="50px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    
    <br />
            <p class="a"><span class="date">Group1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span> &nbsp;<span class="tag">Group2</span> <span class="comments">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Group3</span> </p>
     <table class="style1">
         <tr>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
             <td>
                 &nbsp;</td>
         </tr>
     </table>
    <table class="style1">
    
        <tr>
            <td class="style5">
                <asp:ListBox ID="lbGroup1" runat="server" AutoPostBack="True" 
                    DataSourceID="group1" DataTextField="GroupName" DataValueField="Group1ID" 
                    Height="140px" onselectedindexchanged="lbGroup1_SelectedIndexChanged" 
                    Width="120px"></asp:ListBox>
            </td>
            <td class="style6">
                <asp:ListBox ID="lbGroup2" runat="server" AutoPostBack="True" 
                    DataSourceID="group2" DataTextField="GroupName" DataValueField="Group2ID" 
                    Height="140px" onselectedindexchanged="lbGroup2_SelectedIndexChanged" 
                    Width="120px"></asp:ListBox>
            </td>
            <td>
                <asp:ListBox ID="lbGroup3" runat="server" AutoPostBack="True" 
                    DataSourceID="group3" DataTextField="GroupName" DataValueField="Group3ID" 
                    Height="140px" onselectedindexchanged="lbGroup3_SelectedIndexChanged" 
                    Width="120px"></asp:ListBox>
            </td>
        </tr>
    </table>
      </div>
</div>
      </div>   
</asp:Content>
